package com.yhd.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 首页轮播图
 */
@Data
public class TCycleImg implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    @KeySql(useGeneratedKeys = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "jdbc")
    private Integer id;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;

    /**
     * 标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 文本内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 图片
     */
    @Column(name = "img")
    private String img;

    /**
     * 类型 img:纯图片 imgLink:图片链接,此时data为链接地址
     */
    @Column(name = "type")
    private String type;
    /**
     * 内容
     */
    @Column(name = "data")
    private String data;
    /**
     * 状态 1:生效 0:未生效 2:下架
     */
    @Column(name = "status")
    private Integer status;
    /**
     * 创建人
     */
    @Column(name = "createUserId")
    private String createUserId;
    /**
     * 创建时间
     */
    @Column(name = "createTime")
    private Date createTime;
    /**
     * 修改人
     */
    @Column(name = "updateUserId")
    private String updateUserId;

    /**
     * 修改时间
     */
    @Column(name = "updateTime")
    private Date updateTime;
    
    /**
     * 业务id，活动或者课程id
     */
    @Column(name = "bizId")
    private Integer bizId;
    
    /**
     * 类型 activity:活动，course:课程
     */
    @Column(name = "bizType")
    private String bizType;

}